import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '@/views/home/index.vue'
import XiangView from '@/views/xiang/index.vue'
const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/home',
      component: HomeView,
    },
    {
      path: '/xiang/:goods_id',
      component: XiangView,
    },
  ],
})

export default router
